home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / syscall / RCS / Ioc_NumReadable.c,v < prev    next >
Encoding:
Text File  |  1991-12-11  |  2.0 KB  |  109 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  sprited:1.1.1;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     88.07.29.17.08.44;  author ouster;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     88.06.19.14.29.21;  author ouster;  state Exp;
  16. branches 1.1.1.1;
  17. next     ;
  18.  
  19. 1.1.1.1
  20. date     91.12.10.16.51.35;  author kupfer;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24.  
  25. desc
  26. @@
  27.  
  28.  
  29. 1.2
  30. log
  31. @Lint.
  32. @
  33. text
  34. @/* 
  35.  * Ioc_NumReadable.c --
  36.  *
  37.  *    Source code for the Ioc_NumReadable library procedure.
  38.  *
  39.  * Copyright 1988 Regents of the University of California
  40.  * Permission to use, copy, modify, and distribute this
  41.  * software and its documentation for any purpose and without
  42.  * fee is hereby granted, provided that the above copyright
  43.  * notice appear in all copies.  The University of California
  44.  * makes no representations about the suitability of this
  45.  * software for any purpose.  It is provided "as is" without
  46.  * express or implied warranty.
  47.  */
  48.  
  49. #ifndef lint
  50. static char rcsid[] = "$Header: Ioc_NumReadable.c,v 1.1 88/06/19 14:29:21 ouster Exp $ SPRITE (Berkeley)";
  51. #endif not lint
  52.  
  53. #include <sprite.h>
  54. #include <fs.h>
  55.  
  56.  
  57. /*
  58.  *----------------------------------------------------------------------
  59.  *
  60.  * Ioc_NumReadable --
  61.  *    Return the number of bytes available on the stream.
  62.  *
  63.  * Results:
  64.  *    The number of bytes available.
  65.  *
  66.  * Side effects:
  67.  *    None.
  68.  *
  69.  *----------------------------------------------------------------------
  70.  */
  71.  
  72. ReturnStatus
  73. Ioc_NumReadable(streamID, numPtr)
  74.     int streamID;
  75.     int *numPtr;
  76. {
  77.     register ReturnStatus status;
  78.  
  79.     status = Fs_IOControl(streamID, IOC_NUM_READABLE, 0,
  80.             (Address)NULL, sizeof(int), (Address) numPtr);
  81.     return(status);
  82. }
  83. @
  84.  
  85.  
  86. 1.1
  87. log
  88. @Initial revision
  89. @
  90. text
  91. @d17 1
  92. a17 1
  93. static char rcsid[] = "$Header: proto.c,v 1.2 88/03/11 08:39:08 ouster Exp $ SPRITE (Berkeley)";
  94. d47 1
  95. a47 1
  96.             (Address)NULL, sizeof(int), numPtr);
  97. @
  98.  
  99.  
  100. 1.1.1.1
  101. log
  102. @Initial branch for Sprite server.
  103. @
  104. text
  105. @d17 1
  106. a17 1
  107. static char rcsid[] = "$Header: /sprite/src/lib/c/syscall/RCS/Ioc_NumReadable.c,v 1.1 88/06/19 14:29:21 ouster Exp $ SPRITE (Berkeley)";
  108. @
  109.